@extends('home.layout.base')

<link rel="stylesheet" href="{{URL::asset('./css/store/summary.css')}}">
@section('content')
@include('home.store.storeHeader')

<div class="main" id="storeSummary"  v-cloak>
    <div class="summaryDetails">
        <img :src="storeDetails.logo">
        <div>
            <span>@{{storeDetails.store_name}}</span>
            <span>
            @{{storeDetails.description}}
            </span>
        </div>
    </div>
    <div class="summaryGood">
        <div class="summaryGood_title">擅长领域</div>
        <div class="summaryGood_main">
            <span v-for="(item,index) in storeDetails.cate_id" >@{{item.name}}</span>
        </div>
    </div>
</div>
@endsection
@section('scripts')
<script>
    $(() => {
        let storeSummary = new Vue({
            el: '#storeSummary',
            data: () => {
                return {
                    storeId: getQueryString('id'),
                    storeDetails: {}
                }
            },
            created() {
                let storeDetailData = {
                    id: this.storeId

                }
                apiAjax("{{ route('home.store.storeDetailsApi')}}", 'get', storeDetailData, (res) => {
                    if (res.code == 0) {
                        this.storeDetails = res.data;
                    } else {}
                }, (erro) => {});
            },
            mounted() {},
            methods: {}
        })
    })
</script>
@endsection